package com.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("order_details")
public class OrderDetails implements Serializable {

    /**
     * 主键,自增,订单明细id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 商品id
     */
    private Integer productId;
    /**
     * 所属订单id
     */
    private Integer ordersId;
    /**
     * 数量
     */
    private Integer amount;
    /**
     * 单价
     */
    private Float price;
    /**
     * 小计
     */
    private Float subtotal;
}
